package thriftMyTest;

import org.apache.thrift.TException;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;
import org.apache.thrift.transport.TSocket;
import org.apache.thrift.transport.TTransport;
import org.apache.thrift.transport.TTransportException;

/**
 * Created with IntelliJ IDEA.
 * MyUser: belict
 * Date: 11/30/13
 * Time: 6:55 PM
 * To change this template use File | Settings | File Templates.
 */
public class Client {
    public static void main(String[] args) throws TException {
        TTransport transport = new TSocket("localhost",9091);
        transport.open();

        TProtocol protocol = new TBinaryProtocol(transport);
        TestInfo.Client testInfo = new TestInfo.Client(protocol);

        testInfo.showMeOS(1);
    }
}
